<template>
    <div>
        <h1>小头爸爸</h1>
        <BigHeader @addItem="addItem" @yangyang="yangyang"></BigHeader>
    </div>
</template>

<script>
import BigHeader from './BigHeader.vue';

export default {
    name: 'App',
    props: [''],
    data() {
        return {
            money: "100w",
            list: [
                { name: "tom", age: 18 },
                { name: "jack", age: 10 },
                { name: "rose", age: 15 },
            ],
        };
    },
    components: {
        BigHeader,
    },
    methods: {
        addItem(item) {
            this.list.push(item);
            console.log(this.list);
        },
        yangyang(msg) {
            console.log("我是2203班第一帅！！");
            console.log(msg);
        },
    },
}
</script>

<style lang="scss" scoped>

</style>